<?php
namespace Org\Util;


/**
 * RedpackData
 * +---------------------------------------+
 * +        红包与企业付款数据设置         +
 * +---------------------------=-----------+
 * 解析官方 xml 数据  增加set  和 get 方法
 * @author sixian
 * @version v1.0
 * @copyright  idea0086 
 * creat_time  2015-06-04 22:17 
 */
class RedpackData extends WalletWeixinUtil {

    protected $values = array();

    function __construct($options) {
        parent::__construct($options);
    }

    // 红包数据设置{{{
    public function set_mch_billno($mch_billno) {
        $this->values['mch_billno'] = $mch_billno;
    }

    public function get_mch_billno() {
        try {
            return $this->values['mch_billno'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_mch_id($mch_id) {
        $this->values['mch_id'] = $mch_id;
    }

    public function get_mch_id() {
        try {
            return isset($this->values['mch_id']) ? $this->values['mch_id'] : $this->options['mchid'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_wxappid($wxappid) {
        $this->values['wxappid'] = $wxappid;
    }

    public function get_wxappid() {
        try {
            return isset($this->values['wxappid']) ? $this->values['wxappid'] : $this->options['appid'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_send_name($send_name) {
        $this->values['send_name'] = $send_name;
    }

    public function get_send_name() {
        try {
            return $this->values['send_name'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_re_openid($re_openid) {
        $this->values['re_openid'] = $re_openid;
    }

    public function get_re_openid() {
        try {
            return $this->values['re_openid'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_total_amount($total_amount) {
        $this->values['total_amount'] = $total_amount;
    }

    public function get_total_amount() {
        try {
            return $this->values['total_amount'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_amt_type($amt_type) {
        $this->values['amt_type'] = $amt_type;
    }

    public function get_amt_type() {
        try {
            return $this->values['amt_type'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_amt_list($amt_list) {
        $this->values['amt_list'] = $amt_list;
    }

    public function get_amt_list() {
        try {
            return $this->values['amt_list'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_watermark_imgurl($watermark_imgurl) {
        $this->values['watermark_imgurl'] = $watermark_imgurl;
    }

    public function get_watermark_imgurl() {
        try {
            return $this->values['watermark_imgurl'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_banner_imgurl($banner_imgurl) {
        $this->values['banner_imgurl'] = $banner_imgurl;
    }

    public function get_banner_imgurl() {
        try {
            return $this->values['banner_imgurl'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_total_num($total_num) {
        $this->values['total_num'] = $total_num;
    }

    public function get_total_num() {
        try {
            return $this->values['total_num'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_wishing($wishing) {
        $this->values['wishing'] = $wishing;
    }

    public function get_wishing() {
        try {
            return $this->values['wishing'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_client_ip($client_ip) {
        $this->values['client_ip'] = $client_ip;
    }

    public function get_client_ip() {
        try {
            return $this->values['client_ip'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_act_name($act_name) {
        $this->values['act_name'] = $act_name;
    }

    public function get_act_name() {
        try {
            return $this->values['act_name'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_remark($remark) {
        $this->values['remark'] = $remark;
    }

    public function get_remark() {
        try {
            return $this->values['remark'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }

    public function set_nonce_str($nonce_str) {
        $this->values['nonce_str'] = $nonce_str;
    }

    public function get_nonce_str() {
        try {
            return $this->values['nonce_str'];
        } catch (Exception $e) {
            print $e->getMessage();
            exit();
        }
    }
}

